package cn.tedu.ivos.user.controller;

import cn.tedu.ivos.base.response.jsonresult;
import cn.tedu.ivos.user.pojo.dto.userlogin;
import cn.tedu.ivos.user.pojo.vo.uservo;
import cn.tedu.ivos.user.service.userve;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@Tag(name = "用户模块")
@RestController
@RequestMapping("/v1/user")
public class ucon {

    @Autowired
    private userve userve;

    @PostMapping("/login")
    @Operation(summary = "用户登录")
    @ApiOperationSupport(order = 10)
    public jsonresult login(@Validated @RequestBody userlogin userlogin){
        log.debug("开始处理用户登录");
//        uservo uservo=userve.login(userlogin);
        return jsonresult.ok();
    }

}
